package com.youdianda.mapper;

import com.youdianda.entity.YddCate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 所有分类的数据
 */
@Mapper
@Repository()
public interface YddCateMapper {

    @Select("select * from ydd_cate")
    List<YddCate> getAll();

    @Select("select count(*) from ydd_cate")
    Integer getNumber();
}
